package demo03;

/**
 * @author JYH
 * @version 1.0
 * @date 2022/10/31 15:06
 */
public class Test {
    public static void main(String[] args) {
        Ticket ticket = new Ticket();

        Thread thread1 = new Thread(ticket,"窗口A");
        Thread thread2 = new Thread(ticket,"窗口B");
        Thread thread3 = new Thread(ticket,"窗口C");
        Thread thread4 = new Thread(ticket,"窗口D");

        thread1.start();
        thread2.start();
        thread3.start();
        thread4.start();

    }
}
